﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CSWindows
{
    public partial class Form_findmykey : Form
    {
        public Form_findmykey()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            if ((textBox_account.Text == "") || (textBox_answer.Text == "") || (textBox_name.Text == "")
                || (textBox_showquestion.Text == "") || (textBox_email.Text == "") || (textBox_phone.Text == ""))
            {
                MessageBox.Show("请输入需要的信息！", "Warning!", MessageBoxButtons.OK);
            }
            else
            {
                MessageBox.Show("密码已发送至您的邮箱", "密码找回", MessageBoxButtons.OK);
                //MessageBox.Show("信息输入时出错，请重新输入！", "Warning!", MessageBoxButtons.OK);
            }
        }

        private void button_return_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Form_welcome f = new Form_welcome();
            f.Show();       
        }

    }
}
